package cn.ronghui.project.infrastructure.dao.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

// 房间详情
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Room {
    /** ID */
    private Long id;
    /** 房间ID:楼栋ID + 房间编号 */
    private String roomId;
    /** 房间编号，如A101 */
    private String roomNumber;
    /** 所属楼栋ID */
    private String buildingId;
    /** 房间类型 ('单人间', '双人间', '四人间') */
    private String roomType;
    /** 月租金 */
    private BigDecimal price;
    /** 房间状态 ('空闲', '已租用', '维修中') default '空闲' */
    private String status;
    /** 创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /** 更新时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
